import { Button } from 'antd';
import { ApiOutlined } from '@ant-design/icons';
import { connect } from 'react-redux';
import { openConnect } from '../../redux/actions/connection';
// import { useEffect } from 'react';

function MainTopMenu(props) {
    // useEffect(_ => {});
    return <>
        <Button
            type="default"
            size="large"
            icon={<ApiOutlined />}
            onClick={_ => props.openConnect({link_name: '', port: '', host: '', token: ''})}>连接</Button>
    </>
}


export default connect(_ => ({ }), { openConnect })(MainTopMenu);